<?php

/*
 * Gestion
 *
 * interface de gestion des traductions pour sites multilingues
 *
 * Auteur : Xavier Tezza
 *  2008 - Distribue sous licence GPL
 *
 */
if (!defined('_DIR_PLUGIN_ITEMS_ET_TRADUCTIONS')){
	$p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__)))));
	define('_DIR_PLUGIN_ITEMS_ET_TRADUCTIONS',(_DIR_PLUGINS.end($p)));
}

error_reporting(0);

function exec_traduction_edit(){
	global $updatetable;
	global $connect_statut;
	
	include_spip ("inc/presentation");
	include_spip ("inc/documents");
	include_spip('inc/indexation');
	include_spip ("inc/logos");
	include_spip ("inc/session");
	require_once('../plugins/items_et_traductions/inc/fonctions_php.php');
	require_once('../plugins/items_et_traductions/inc/php_ajax.php');
	require_once('../plugins/items_et_traductions/config.php');
	
	$commencer_page = charger_fonction('commencer_page', 'inc');
	echo $commencer_page(_T('traduction:titre'), "configuration", "Items & Traductions");

	echo debut_boite_info('traduction',true);

	echo "<strong>"._T('traduction:titre')."</strong><br><br>";
	
	echo debut_gauche('traduction',true);

		echo debut_boite_info(true);
		echo "<div id='ma_boite_gauche'>";
		include("../plugins/items_et_traductions/exec/gauche.php");
		echo "</div>";
		echo fin_boite_info(true);

	echo debut_droite('traduction',true);

		echo debut_boite_info(true);
		echo "<div id='ma_boite_droite'>";
		include("../plugins/items_et_traductions/exec/droite.php");
		echo "</div>";
		echo fin_boite_info(true);
		
echo fin_boite_info(true);

	global $connect_statut;
	if ($connect_statut != '0minirezo') {
		echo "<strong>"._T('avis_acces_interdit')."</strong>";
		echo fin_page();
		exit;
	}
	
	

	echo fin_page();
}

?>